package com.cskaoyan.catmall.controller.background;

import com.cskaoyan.catmall.model.bo.BaseParamBo;
import com.cskaoyan.catmall.model.bo.LogListBo;
import com.cskaoyan.catmall.model.vo.BaseRespVo;
import com.cskaoyan.catmall.model.vo.Log.LogListVo;
import com.cskaoyan.catmall.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 创建日期: 2022-01-09-09-30
 * author : WQW
 * description: 日志操作相关接口
 */

@RestController
@RequestMapping("admin/log")
public class LogController {

    @Autowired
    LogService logService;

    /**
     * @description
     * @author WQW
     * @date 2022/1/10 10:34
     * @param
     * @param logListBo
     * @return com.cskaoyan.catmall.model.vo.BaseRespVo
     */
    @GetMapping("list")
    public BaseRespVo list(LogListBo logListBo) {
        LogListVo logListVo = logService.getLogList(logListBo);
        return BaseRespVo.ok(logListVo);
    }
}
